﻿namespace Plan
{

    public class ScheduleLogEntry
    {
        private readonly ScheduleSolution _solution;
        private readonly string _message;
        private readonly double _time;
        private readonly string _shits;

        public string Shits
        {
            get { return _shits; }
        } 


        public ScheduleLogEntry(string message) : this(message, 0d)
        {
        }

        public ScheduleLogEntry(string message, double time) : this(message, null, time)
        {
        }

        public ScheduleLogEntry(string message, ScheduleSolution solution) : this(message, solution, 0d)
        {
        }
        public ScheduleLogEntry(string message, ScheduleSolution solution, double time) : this(message, solution, time, "")
        {
        }

        public ScheduleLogEntry(string message, ScheduleSolution solution, double time, string shits)
        {
            _solution = solution;
            _time = time;
            _message = message;
            _shits = shits;
        }

        public ScheduleSolution Solution
        {
            get { return _solution; }
        }

        public string Message
        {
            get { return _message; }
        }

        public double Time
        {
            get { return _time; }
        }
    }
}
